import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import 'element-plus/dist/index.css'
import './static/element.scss'
import './static/main.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import ThreeScene from "@/components/three/ThreeScene.vue"
import SnowScene from "@/components/three/SnowScene.vue"
import EarthScene from "@/components/three/EarthScene.vue"
import ElementPlus from 'element-plus'
const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn
})

// 全局组件挂载
app.component('ThreeScene', ThreeScene)
app.component('SnowScene', SnowScene)
app.component('EarthScene', EarthScene)

// 定义全局URL
app.use(router)
app.mount('#app')
